package com.roy.wakeupes.demos.web;

import com.roy.wakeupes.service.IHotelService;
import com.roy.wakeupes.service.WordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import toolgood.words.IllegalWordsSearchResult;

import java.util.List;
import java.util.stream.Collectors;

@RestController
@RequestMapping("word")
public class WordController {

    @Autowired
    WordService wordService;

    @GetMapping("test")
    public void wordTest(@RequestParam("content") String content){
        boolean isContainSensitiveWord = wordService.test(content);
    }


}
